package org.common.eureka.mqlistener;

import com.alibaba.fastjson.JSONObject;
import io.netty.handler.codec.json.JsonObjectDecoder;
import org.common.eureka.config.TopicRabbitConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class AsyncOrderListener {

    /**
     * 异步消息队列中消息
     *
     * @author samphin
     * @since 2020-6-27 16:44:38
     */
    @RabbitListener(queues = TopicRabbitConfig.ORDER_INFO_QUEUE_NAME)
    public void saveOrder(String orderInfo) {
        System.out.println("orderInfo>>>>" + orderInfo);
    }

}
